package com.asset.dispoal.business.make.domain.db.mapper;

import com.asset.dispoal.business.make.dto.MakePageRequest;
import com.asset.dispoal.business.make.dto.MakePageResponse;
import com.asset.dispoal.business.make.dto.MakeViewPageRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tech.mhuang.pacebox.springboot.protocol.data.Page;

import java.util.List;

/**
 * @author qr
 * @date 2022/5/18$
 */
@Mapper
public interface MakeMapper {

    Integer queryCount(MakePageRequest request);

    List<MakePageResponse> queryPage(Page<MakePageRequest> page);

    List<String> queryCaseIdByAppointIdState(@Param("appointId") String appointId, @Param("state") String state);

    Integer queryViewCount(MakeViewPageRequest request);

    List<MakePageResponse> queryViewPage(Page<MakeViewPageRequest> page);
}